package com.spa.application.dto.admin;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spa.infrastructure.enums.dict.carousel.CarouselTypeEnum;
import lombok.Data;

import java.util.Date;

@Data
@JsonInclude
public class AdminCarouselDTO {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    private String title;

    private String imgKey;

    private Integer sort = 0;

    private String link;

    private Integer isShow;

    private CarouselTypeEnum type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
